package com.my.hotel.mapper;

import com.alibaba.druid.sql.visitor.functions.Char;
import com.my.hotel.entity.Eva;
import com.my.hotel.entity.Hd;
import com.my.hotel.entity.KfRoom;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.sql.Array;
import java.util.List;

@Repository
public interface TbEvaMapper {
    @Select("select * from tb_eva where app_status like \"%\"#{app_status}\"%\"")
    public List<Eva> getList(String app_status);

    @Delete("delete from tb_eva where id=#{id}")
    public void delEva(int id);

    @Update("update tb_eva set app_status=1 where id=#{id}")
    public void updEva(int id);

    @Delete("delete from tb_eva where id =#{id}")
    public void delAllEva(String id);

    @Update("update tb_eva set app_status=1 where id = #{id}")
    public void updateAllEva(String id);
}
